<?php 
include "../function/function.php";
function __autoload($c){
	$dirName=array(
		"./".$c.".class.php",
		"./interface".$c.".class.php",
		);
	foreach ($dirName as $key => $value) {
		if (file_exists($value)) {
			include $value;
			break;
		}
	}
};



$p = new Zanshi();
$p->name = "Jason";
$p->gender = "man";
$p->age=21;

echo $p->name;

// $a=new Test;
// echo $a->name;









 ?>